Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 4: Building Text Shapes

../ch04/04fig10.gif
Figure 4.10

Two lines of text with a flat box between them

04fig10.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        Shape {
            appearance DEF White Appearance {
                material Material { }
            }
            geometry Text {
                string [ "Above", "Below" ]
                fontStyle FontStyle {
                    justify "MIDDLE"
                }
            }
        },
        Shape {
            appearance USE White
            geometry Box {
                size 5.0 0.01 2.0
            }
        }
    ]
}